package com.smartEdu.service.impl.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import com.smartEdu.commons.ReqMap;
import com.smartEdu.commons.Session;
import com.smartEdu.commons.Tag_Tips;
import com.smartEdu.dao.CourseDao;

@Service(value="webApiServiceImpl")
public class WebApiServiceImpl {
	@Autowired
	@Qualifier("courseAppDaoImpl")
	private CourseDao courseDao;
	
	public void getCourseListApi(Session sess) {
		ReqMap map = new ReqMap();
		map.SetAll(sess.getVals());
		sess.put(Tag_Tips.DAODATA,courseDao.getCourseListApi(map));
	}
	
	public void getClassListApi(Session sess) {
		ReqMap map = new ReqMap();
		map.SetAll(sess.getVals());
		sess.put(Tag_Tips.DAODATA,courseDao.getClassListApi(map));
	}
	
}
